import service from "../index";

const queryEmpInfo = (param) => {
  return service.post("/apr/empinfo/query", param);
};
const saveEmpInfo = (param) => {
  return service.post("/apr/empinfo/save", param);
};
const deleteEmpInfo = (param) => {
  return service.post("/apr/empinfo/delete", param);
};
const uniqueCheck = (param) => {
  return service.post("/apr/empinfo/unique-check", param);
};
const importEmpInfo = (param) => {
  return service.post("/apr/empinfo/import", param);
};
const exportCorrect = (param) => {
  return service.post("/apr/empinfo/export-correct", param, { responseType: "blob" });
};
const exportEmpInfo = (param) => {
  return service.post("/apr/empinfo/export", param, { responseType: "blob" });
};

export default { queryEmpInfo, saveEmpInfo, deleteEmpInfo, uniqueCheck, importEmpInfo, exportCorrect, exportEmpInfo };
